from base_restful.finance import *
from base_restful.crm import login_app
import json
from urllib import request, parse

# Const.base_url = 'http://localhost:8081'
Const.base_url = 'http://10.129.83.242'
login_app('18201388122', '123456')
Const.base_url = 'http://localhost:8081'
# print(json.dumps(finance_create_receipt_bill(),ensure_ascii=False))
# print(json.dumps(finance_offline_order_list(),ensure_ascii=False))
# print(json.dumps(receipt_bill_to_client(),ensure_ascii=False))
# print(receipt_bill_detail('ZD2019071514000005441'))
# print(type(receipt_bill_detail('ZD2019071514000005441')))
print((receipt_bill_detail1('ZD2019071514000005441')))
print(parse.urlencode({'name': 'pym', 'sex': "nv"}))
